package org.example.friend.repository;

import org.apache.ibatis.annotations.Param;
import org.example.friend.entity.Friend_R;
import org.example.friend.entity.friend;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface FriendRepository {
    List<friend> getFriendList(@Param("Email")String Email);
    friend findUserByEmail(Map<String, String> map);
    friend findFriendByEmail(Map<String, String> map);
    void addFriend(Map<String, String> map);
    void deleteFriend(Map<String, String> map);
    List<Friend_R> getMyFriendRequest(String UserEmail);//获取我发送的好友请求
    List<Friend_R> getMyFriendResponse(String UserEmail);//获取我接受的好友请求
    void addFriendRequest(Friend_R friend_r);
    void deleteFriendRequest(Map map);
}
